#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtSql>
#include <QLabel>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void refreshBills();
    void refreshBillAmount();
    void refreshPayments();
    void resizeEvent(QResizeEvent *e);

private slots:
    void on_comboBox_activated(int index);

    void on_actionNew_Bill_triggered();

    void on_actionPayment_Types_triggered();

    void on_actionNew_Payment_triggered();

    void on_actionExit_triggered();

    void on_actionSet_Password_triggered();

    void on_actionAbout_triggered();

    void on_actionSet_Budget_triggered();

    void on_actionCurrent_Bill_triggered();

private:
    Ui::MainWindow *ui;
    //Current Index of bill at comboBox;
    int currentBill;
    QLabel *billStatus;
    QSqlQueryModel *model;
};

#endif // MAINWINDOW_H
